package com.lukk.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
 * 
 * Resource 上午10:24:15
 * 
 * Copyright zhaocj Inc. All rights reserved.
 * Love ME Like Justin Bieber.
 */
public class Resource implements Serializable {
	private static final long serialVersionUID = 6234227014039744908L;
	private Integer id;
	private String name;
	private String url;
	private String type;
	private String code;
	private Integer parentId;
	private boolean hasResource = false;
	private boolean checked = false;
	private List<Resource> children = new ArrayList<Resource>();

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public boolean isHasResource() {
		return hasResource;
	}

	public void setHasResource(boolean hasResource) {
		this.hasResource = hasResource;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public List<Resource> getChildren() {
		return children;
	}

	public void setChildren(List<Resource> children) {
		this.children = children;
	}

}
